package com.example.dataextraction.model;

import javax.validation.constraints.NotEmpty;

/**
 * @author Zenan Chen
 * @date 2023/2/14 13:41
 */
public class QueryVO {

    @NotEmpty(message = "sql字段不能为空")
    private String sql;
    private Boolean limit;
    private Integer pageNum;
    private Integer pageSize;

    private String dataSourceCode;

    public String getDataSourceCode() {
        return dataSourceCode;
    }

    public void setDataSourceCode(String dataSourceCode) {
        this.dataSourceCode = dataSourceCode;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Boolean getLimit() {
        return limit;
    }

    public void setLimit(Boolean limit) {
        this.limit = limit;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
